"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
const tiny_entity2_1 = require("tiny-entity2");
const EntityObjectType = tiny_entity2_1.EntityObjectFactory.GetEntityObjectType(process.env.dataBaseType || 'mysql');
let KitchenOrder = class KitchenOrder extends EntityObjectType {
};
__decorate([
    tiny_entity2_1.Define.PrimaryKey(),
    __metadata("design:type", String)
], KitchenOrder.prototype, "id", void 0);
__decorate([
    tiny_entity2_1.Define.Column({
        DataType: tiny_entity2_1.Define.DataType.VARCHAR,
        NotAllowNULL: true,
        IsIndex: true
    }),
    __metadata("design:type", String)
], KitchenOrder.prototype, "storeId", void 0);
__decorate([
    tiny_entity2_1.Define.Column({
        DataType: tiny_entity2_1.Define.DataType.VARCHAR,
        IsIndex: true,
        NotAllowNULL: true
    }),
    __metadata("design:type", String)
], KitchenOrder.prototype, "orderId", void 0);
__decorate([
    tiny_entity2_1.Define.Column({
        DataType: tiny_entity2_1.Define.DataType.VARCHAR,
        NotAllowNULL: true
    }),
    __metadata("design:type", String)
], KitchenOrder.prototype, "status", void 0);
__decorate([
    tiny_entity2_1.Define.Column({
        DataType: tiny_entity2_1.Define.DataType.BIGINT
    }),
    __metadata("design:type", Number)
], KitchenOrder.prototype, "createTime", void 0);
__decorate([
    tiny_entity2_1.Define.Column({
        DataType: tiny_entity2_1.Define.DataType.VARCHAR
    }),
    __metadata("design:type", String)
], KitchenOrder.prototype, "tableId", void 0);
__decorate([
    tiny_entity2_1.Define.Column({
        DataType: tiny_entity2_1.Define.DataType.VARCHAR
    }),
    __metadata("design:type", String)
], KitchenOrder.prototype, "tableName", void 0);
__decorate([
    tiny_entity2_1.Define.Column({
        DataType: tiny_entity2_1.Define.DataType.VARCHAR
    }),
    __metadata("design:type", String)
], KitchenOrder.prototype, "tableZoneId", void 0);
__decorate([
    tiny_entity2_1.Define.Column({
        DataType: tiny_entity2_1.Define.DataType.VARCHAR
    }),
    __metadata("design:type", String)
], KitchenOrder.prototype, "tableZoneName", void 0);
__decorate([
    tiny_entity2_1.Define.Column({
        DataType: tiny_entity2_1.Define.DataType.Decimal,
        DefaultValue: 0
    }),
    __metadata("design:type", Number)
], KitchenOrder.prototype, "totalQty", void 0);
__decorate([
    tiny_entity2_1.Define.Column({
        DataType: tiny_entity2_1.Define.DataType.Decimal,
        DefaultValue: 0
    }),
    __metadata("design:type", Number)
], KitchenOrder.prototype, "totalProduceQty", void 0);
__decorate([
    tiny_entity2_1.Define.Column({
        DataType: tiny_entity2_1.Define.DataType.Decimal,
        DefaultValue: 0
    }),
    __metadata("design:type", Number)
], KitchenOrder.prototype, "totalRefundQty", void 0);
__decorate([
    tiny_entity2_1.Define.Column({
        DataType: tiny_entity2_1.Define.DataType.Decimal,
        DefaultValue: 0
    }),
    __metadata("design:type", Number)
], KitchenOrder.prototype, "remindCount", void 0);
__decorate([
    tiny_entity2_1.Define.Column({
        DataType: tiny_entity2_1.Define.DataType.VARCHAR
    }),
    __metadata("design:type", String)
], KitchenOrder.prototype, "orderType", void 0);
__decorate([
    tiny_entity2_1.Define.Column({
        DataType: tiny_entity2_1.Define.DataType.VARCHAR
    }),
    __metadata("design:type", String)
], KitchenOrder.prototype, "note", void 0);
__decorate([
    tiny_entity2_1.Define.Column({
        DataType: tiny_entity2_1.Define.DataType.BIGINT
    }),
    __metadata("design:type", Number)
], KitchenOrder.prototype, "version", void 0);
__decorate([
    tiny_entity2_1.Define.Mapping({
        Mapping: 'KitchenOrderItem',
        MappingKey: 'kitchenOrderId'
    }),
    __metadata("design:type", Array)
], KitchenOrder.prototype, "kitchenOrderItems", void 0);
KitchenOrder = __decorate([
    tiny_entity2_1.Define.Table({ TableName: 'kitchenorder' })
], KitchenOrder);
exports.KitchenOrder = KitchenOrder;
exports.KitchenOrderStatus = {
    Init: 'init',
    Closed: 'closed'
};
